package stars.enums;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class StarSystemParameters {
	
	private HashMap<String, Double> parameters = new HashMap<String, Double>();
	private ArrayList<String> entries = new ArrayList<String>();
	
	public ArrayList<String> getEntries() {
		return this.entries;
	}
	
	public void addParameter(String param, double value) {
		parameters.put(param, value);
		entries.add(param);
	}
	
	public double getParameter(String param) {
		return parameters.get(param);
	}
	
	public HashMap<String, Double> getAllParameters() {
		return this.parameters;
	}
	
	public void setParameters(HashMap<String, Double> parameters) {
		this.parameters.clear();
		this.parameters.putAll(parameters);
		
		for (Map.Entry<String, Double> entry : parameters.entrySet()) {
			entries.add(entry.getKey());
		}
	}

}
